package com.xbongbong.paas.service.field.impl;

import com.xbongbong.paas.field.FieldAttrEntity;
import com.xbongbong.paas.service.field.FieldOptimizationService;
import com.xbongbong.paas.toolbox.exception.XbbException;

/**
 * @author：吴峰
 * @date：2020/07/13 13:42
 */
public class SeparatorOptimizationServiceImpl extends BaseOptimization implements FieldOptimizationService {


    @Override
    public void execute(FieldAttrEntity entity) throws XbbException {
        removeAddRuleAndRemoveRule(entity);
        removeItems(entity);
        removeNumericalLimits(entity);
        removeDefaultAttr(entity);
        removeOfImageAndFile(entity);
        removeDateType(entity);
//        entity.setRequired(null);
        entity.setShowEditable(0);
        removeEditRule(entity);
        removeDetailAddress(entity);
        commonHandle(entity);
    }
}
